<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>前后端调用-post</title>
	</head>
	<body>
		<h1>前后端调用</h1>
		<script src="../js/axios.js"></script>
		
		<script>
		
		let name="小燕子"
		let user={
			id=238,
			name:"小鬼",
			age:18,
			sex='男'
		}
		let url="http://localhost:8090/axios/updateUser"
		axios.post(url,user)
		.then(Promise=>{console.log((Promise.data))})
		</script>
		
	</body>
</html>
